<!DOCTYPE html>
<html lang="zh_TW">
  <head>
    <meta charset="utf-8">
    <title>Clickr &#9679; CMS Admin</title>
    <meta name="author" content="http://www.clickrweb.com">
    <!-- Le styles -->
    <link href="<?=base_url('themes/admins/css/style.css')?>" rel="stylesheet">
    <link href="<?=base_url('themes/admins/css/font-awesome.css')?>" rel="stylesheet">
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--[if IE 7]>
      <link rel="stylesheet" href="<?=base_url('themes/admins/css/font-awesome-ie7.css')?>">
    <![endif]-->
    <!-- Le fav and touch icons -->
    <!--[if lt IE 8]><style type="text/css" media="all">@import url("<?=base_url('themes/admins/css/ie.css')?>");</style><![endif]-->
    <link rel="shortcut icon" href="<?=base_url('themes/admins/img/ico.ico')?>">
    <meta name="application-name" content="CMS Admin"/>
    <meta name="description" content="CMS Admin Application"/>
    <meta name="application-url" content="<?=site_url('index')?>"/>
    <link rel="icon" href="<?=base_url('themes/admins/img/ico_32x32.png')?>" sizes="32x32"/>
    <link rel="icon" href="<?=base_url('themes/admins/img/ico_48x48.png')?>" sizes="48x48"/>
    <script src="<?=base_url('themes/admins/js/jquery-1.7.1.min.js')?>"  type="text/javascript" ></script>
    <script src="<?=base_url('themes/admins/js/common.js')?>" type="text/javascript"></script>
  </head>
<body>
<div id="hld">
  <div class="wrapper">
  <p class="ac login_title"><?=$lang['global_lable_1']?></p>
    <!-- wrapper begins -->
    <div class="block small center login">
      <div class="block_head">
        <div class="bheadl"></div>
        <div class="bheadr"></div>
        <h2><?=$lang['login_lable_1']?></h2>
        <ul>
          <li><a href="<?=site_url('index')?>" title="<?=$lang['login_lable_6']?>"><i class="icon-off b_icon"></i></a></li>
        </ul>
      </div>
      <!-- .block_head ends -->
      <div class="block_content">
        <?php $this->load->view('common/notify');?>
        <form action="<?=site_url('admins/login/login_admin').'?ref='.urlencode($this->referrer)?>" method="post" >
          <p>
            <label><?=$lang['login_lable_2']?>：</label>
            <input type="text" class="text" name="user_name" value="<?=set_value('user_name',isset($user_name)?$user_name:'')?>" />
          </p>
          <p>
            <label><?=$lang['login_lable_3']?>：</label>
            <input type="password" class="text" name="user_pwd" />
          </p>
          <p>
            <label><?=$lang['login_lable_4']?>：</label>
            <input type="text" class="text" name="authcode" style="width:200px;" />
            <span class="note" style="cursor:pointer;"><img id="auth_img" src="<?php echo site_url('admins/login/load_auth');?>" /></span>
          </p>
          <p>
            <button type="submit" class="btn btn-primary"><?=$lang['login_lable_5']?></button>
          </p>
        </form>
      </div>
      <!-- .block_content ends -->
      <div class="bendl"></div>
      <div class="bendr"></div>
    </div>
    <!-- .login ends -->
  </div>
  <p class="ac fsmall copyright">© PopFree Tech</p>
  <!-- wrapper ends -->
</div>
<!-- #hld ends -->
<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $('#auth_img').click(function(){
      var src=$(this).attr('src');
      $(this).attr('src',src+'?rndcode='+Math.random());
    })
  });
</script>
</body>
</html>